package com.itcast.common.entity.result;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 数据返回实体封装
 *
 * @author zheng.zhang
 */
@Data
@Builder
@EqualsAndHashCode
public class ResponseResult<T> implements Serializable {
    private static final long serialVersionUID = -3411174924856108156L;

    /**
     * 服务器响应码
     */
    private Integer code;

    /**
     * 服务器响应说明
     */
    private String message;

    /**
     * 服务器响应数据
     */
    private T data;
}
